package com.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static javafx.scene.input.KeyCode.R;

/**
 * @ProjectName: springcloud_day1
 * @Package: com.myrule
 * @ClassName: KuangRule
 * @Author: 郑涛
 * @Description:
 * @Date: 2020/10/21 16:07
 * @Version: 1.0
 */
@Configuration
public class KuangRule {

    @Bean
    public IRule myrule(){
        return new RandomRule();
    }
}
